package com.easy.common.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
@AllArgsConstructor//构造方法
@NoArgsConstructor//无参构造方法
public class User implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String username;
    private String password;
    private String email;
    private String phone;
    private String real_name;
    private String gender;
    private String avatar;
    private String role;
    private String driver_license;
    private Integer driver_apply_status;//司机申请状态(0-无申请，1-申请待审批，2-审批通过)
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime register_time;
    private Integer isdel;
}
